package com.sasken.pdb.controllers.events
{
	import com.sasken.pdb.controllers.interfaces.IDataProviderRenderer;
	
	import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
	
	/**
	 * 
	 * 
	 */ 
	public class ItemRendererEvent extends ObjectEvent
	{
		private var _column:AdvancedDataGridColumn;
		private var _renderer:IDataProviderRenderer;
		
		/**
		 *  dispatched when an unreachable object's creation is complete. Used with
		 *  item renderers to signal their owner that more data can be passed to them 
		 *  through the supplied object.
		 */ 
		public static var EVENT_PASS_DATAPROVIDER:String = "dpEvent";
		
		public function ItemRendererEvent(type:String, column:AdvancedDataGridColumn, renderer:IDataProviderRenderer,
										  bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, column, bubbles, cancelable);
			_column = column;
			_renderer = renderer;
		}
		
		public function get column():AdvancedDataGridColumn
		{
			return _column;
		}
		
		public function get renderer():IDataProviderRenderer
		{
			return _renderer;
		}
			
			
	}	
}